#include "MessageAttachment.h"

using namespace kc_sf;

// ------------------------------------------------- //

MessageAttachment::MessageAttachment(const RawMessage &rmsg, const std::string &text)
: Attachment (text, ContentType( "multipart", "message" ) ),
  Message( rmsg )
{
}

// ------------------------------------------------- //

MessageAttachment::MessageAttachment(
	const RawMessage &rmsg,
	const std::string &text,
	EncodingType encoding,
	const std::string &charset)
: Attachment (text, encoding, charset, ContentType( "multipart", "message" ) ),
  Message( rmsg )
{
}

// ------------------------------------------------- //

Attachment * MessageAttachment::clone() const
{
	return new MessageAttachment (*this);
}
